//
//  UITableViewCell+Register.m
//  SaleManager
//
//  Created by Duan on 2018/7/5.
//  Copyright © 2018年 Facebook. All rights reserved.
//

#import "UITableViewCell+Register.h"

@implementation UITableViewCell (Register)

+ (void)registerNibToTable:(UITableView *)tableView {
    [tableView registerNib:[UINib nibWithNibName:NSStringFromClass([self class]) bundle:nil] forCellReuseIdentifier:[self reuseIdentifier]];
}

+ (void)registerClassToTable:(UITableView *)tableView {
    [tableView registerClass:[self class] forCellReuseIdentifier:[self reuseIdentifier]];
}

+ (NSString *)reuseIdentifier {
    return NSStringFromClass([self class]);
}

@end
